import request from '@/utils/request'

// 查询分账接收方列表列表
export function listReceivers(query) {
  return request({
    url: '/business/receivers/list',
    method: 'get',
    params: query
  })
}

// 查询分账接收方列表详细
export function getReceivers(id) {
  return request({
    url: '/business/receivers/' + id,
    method: 'get'
  })
}

// 新增分账接收方列表
export function addReceivers(data) {
  return request({
    url: '/business/receivers',
    method: 'post',
    data: data
  })
}

// 修改分账接收方列表
export function updateReceivers(data) {
  return request({
    url: '/business/receivers',
    method: 'put',
    data: data
  })
}

// 删除分账接收方列表
export function delReceivers(id) {
  return request({
    url: '/business/receivers/' + id,
    method: 'delete'
  })
}
